import React from 'react'

const loginction = (val) => {
    return (dispatch)=>{
        fetch('http://39.96.84.223:4567/verify/adminlogin',{
            method:'post',
            body:JSON.stringify({username:'fdy120',passwd:'1234567'})
        })
        .then(res=>res.json())
        .then(res=>{
            dispatch({type:'login',value:true})
        })
    }
}

export default loginction
